package priv.yiyuan.example.design.payment;

import java.math.BigDecimal;

/**
 * 支付方式抽象类
 * <p>
 * 桥接模式的抽象部分
 *
 * @author YiYuan
 * @data 2025/8/14
 * @apoNote
 */
public abstract class PaymentMethod {

    protected PaymentPlatform paymentPlatform;

    public PaymentMethod(PaymentPlatform paymentPlatform) {
        this.paymentPlatform = paymentPlatform;
    }

    public abstract void pay(BigDecimal amount);

    public abstract String getMethodName();
}
